Optimal. Leaf size=517 \[ -\frac {2 A \sqrt {a+b} \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{a^3 d}+\frac {2 \left (a^2 C+A b^2\right ) \tan (c+d x)}{3 a d \left (a^2-b^2\right ) (a+b \sec (c+d x))^{3/2}}-\frac {2 \left (a^4 (-C)-a^2 b^2 (7 A+3 C)+3 A b^4\right ) \tan (c+d x)}{3 a^2 d \left (a^2-b^2\right )^2 \sqrt {a+b \sec (c+d x)}}-\frac {2 \left (a^4 (-C)-a^2 b^2 (7 A+3 C)+3 A b^4\right ) \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{3 a^2 b^2 d \sqrt {a+b} \left (a^2-b^2\right )}-\frac {2 \left (a^3 (-C)+6 a^2 A b+3 a^2 b C-a A b^2-3 A b^3\right ) \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{3 a^2 b d (a-b) (a+b)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.77, antiderivative size = 517, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.259, Rules used = {4061, 4060, 4058, 3921, 3784, 3832, 4004} \[ -\frac {2 \left (-a^2 b^2 (7 A+3 C)+a^4 (-C)+3 A b^4\right ) \tan (c+d x)}{3 a^2 d \left (a^2-b^2\right )^2 \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (a^2 C+A b^2\right ) \tan (c+d x)}{3 a d \left (a^2-b^2\right ) (a+b \sec (c+d x))^{3/2}}-\frac {2 \left (6 a^2 A b+3 a^2 b C+a^3 (-C)-a A b^2-3 A b^3\right ) \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{3 a^2 b d (a-b) (a+b)^{3/2}}-\frac {2 \left (-a^2 b^2 (7 A+3 C)+a^4 (-C)+3 A b^4\right ) \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{3 a^2 b^2 d \sqrt {a+b} \left (a^2-b^2\right )}-\frac {2 A \sqrt {a+b} \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{a^3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3784
Rule 3832
Rule 3921
Rule 4004
Rule 4058
Rule 4060
Rule 4061
Rubi steps
\begin {align*} \int \frac {A+C \sec ^2(c+d x)}{(a+b \sec (c+d x))^{5/2}} \, dx &=\frac {2 \left (A b^2+a^2 C\right ) \tan (c+d x)}{3 a \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}-\frac {2 \int \frac {-\frac {3}{2} A \left (a^2-b^2\right )+\frac {3}{2} a b (A+C) \sec (c+d x)-\frac {1}{2} \left (A b^2+a^2 C\right ) \sec ^2(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx}{3 a \left (a^2-b^2\right )}\\ &=\frac {2 \left (A b^2+a^2 C\right ) \tan (c+d x)}{3 a \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}-\frac {2 \left (3 A b^4-a^4 C-a^2 b^2 (7 A+3 C)\right ) \tan (c+d x)}{3 a^2 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}+\frac {4 \int \frac {\frac {3}{4} A \left (a^2-b^2\right )^2+\frac {1}{2} a b \left (A b^2-a^2 (3 A+2 C)\right ) \sec (c+d x)+\frac {1}{4} \left (3 A b^4-a^4 C-a^2 b^2 (7 A+3 C)\right ) \sec ^2(c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx}{3 a^2 \left (a^2-b^2\right )^2}\\ &=\frac {2 \left (A b^2+a^2 C\right ) \tan (c+d x)}{3 a \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}-\frac {2 \left (3 A b^4-a^4 C-a^2 b^2 (7 A+3 C)\right ) \tan (c+d x)}{3 a^2 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}+\frac {4 \int \frac {\frac {3}{4} A \left (a^2-b^2\right )^2+\left (\frac {1}{2} a b \left (A b^2-a^2 (3 A+2 C)\right )+\frac {1}{4} \left (-3 A b^4+a^4 C+a^2 b^2 (7 A+3 C)\right )\right ) \sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx}{3 a^2 \left (a^2-b^2\right )^2}+\frac {\left (3 A b^4-a^4 C-a^2 b^2 (7 A+3 C)\right ) \int \frac {\sec (c+d x) (1+\sec (c+d x))}{\sqrt {a+b \sec (c+d x)}} \, dx}{3 a^2 \left (a^2-b^2\right )^2}\\ &=-\frac {2 \left (3 A b^4-a^4 C-a^2 b^2 (7 A+3 C)\right ) \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3 a^2 (a-b) b^2 (a+b)^{3/2} d}+\frac {2 \left (A b^2+a^2 C\right ) \tan (c+d x)}{3 a \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}-\frac {2 \left (3 A b^4-a^4 C-a^2 b^2 (7 A+3 C)\right ) \tan (c+d x)}{3 a^2 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}+\frac {A \int \frac {1}{\sqrt {a+b \sec (c+d x)}} \, dx}{a^2}+\frac {\left (a A b^2+3 A b^3+a^3 C-3 a^2 b (2 A+C)\right ) \int \frac {\sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx}{3 a^2 (a-b) (a+b)^2}\\ &=-\frac {2 \left (3 A b^4-a^4 C-a^2 b^2 (7 A+3 C)\right ) \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3 a^2 (a-b) b^2 (a+b)^{3/2} d}+\frac {2 \left (a A b^2+3 A b^3+a^3 C-3 a^2 b (2 A+C)\right ) \cot (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3 a^2 (a-b) b (a+b)^{3/2} d}-\frac {2 A \sqrt {a+b} \cot (c+d x) \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{a^3 d}+\frac {2 \left (A b^2+a^2 C\right ) \tan (c+d x)}{3 a \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}-\frac {2 \left (3 A b^4-a^4 C-a^2 b^2 (7 A+3 C)\right ) \tan (c+d x)}{3 a^2 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 23.04, size = 1715, normalized size = 3.32 \[ \text {result too large to display} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {C \sec \left (d x + c\right )^{2} + A}{{\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 1.88, size = 6380, normalized size = 12.34 \[ \text {output too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {A+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {A + C \sec ^{2}{\left (c + d x \right )}}{\left (a + b \sec {\left (c + d x \right )}\right )^{\frac {5}{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________